<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0048)http://localhost:8080/mango/product/list/1.jhtml -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>名城网上便利店</title>
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css"/>
<link href="${pageContext.request.contextPath}/css/product.css" rel="stylesheet" type="text/css"/>

</head>
<body>

<%@ include file="header.jsp" %>

<div class="container productList">
		<div class="span6">
			<div class="seller">			
                <div class="seller_title">
                	<h3><s:property value="seller.sname"/></h3>
                	<img src="${pageContext.request.contextPath }/images/default_store_logo.gif" height="100" width="100" >
                </div>
                <p>信用度：
                	<s:if test="seller.star == 1">*</s:if>
                	<s:elseif test="seller.star == 2">**</s:elseif>
                	<s:elseif test="seller.star == 3">***</s:elseif>
                	<s:elseif test="seller.star == 4">****</s:elseif>
                </p>
                <p>创店时间：<s:date name="seller.sdate" format="yyyy-MM-dd"/></p>
                <p>详细地址：<s:property value="seller.address"/></p>
                <p>联系电话：<s:property value="seller.phone"/></p>
			</div>
		</div>
		<div class="span18 last">
			
			<form id="productForm" action="${pageContext.request.contextPath}/image/蔬菜 - Powered By Mango Team.htm" method="get">
				<input type="hidden" id="brandId" name="brandId" value="">
				<input type="hidden" id="promotionId" name="promotionId" value="">
				<input type="hidden" id="orderType" name="orderType" value="">
				<input type="hidden" id="pageNumber" name="pageNumber" value="1">
				<input type="hidden" id="pageSize" name="pageSize" value="20">
					
				<div id="result" class="result table clearfix">
						<ul>
							<s:iterator var="p" value="pageBean.list">
                            <li>
                                <a href="${pageContext.request.contextPath }/product_findByPid.action?pid=<s:property value="#p.pid"/>">
                                    <img src="${pageContext.request.contextPath}/<s:property value="#p.image"/>" width="170" height="170"  style="display: inline-block;">
                                       
                                    <span class="price">
                                                                                          ￥<s:property value="#p.price"/>
                                    </span>
                                    
                                    <span style="color:green">
                                   		<s:property value="#p.pname"/>
                                    </span>
                                     
                                </a>
                            </li>
                            </s:iterator>
						</ul>
				</div>
	<div class="pagination">
			<s:if test="pageBean.page != 1">
			<a class="firstPage" href="${pageContext.request.contextPath }/product_findByCidWithPage?cid=<s:property value="cid"/>&page=1">&nbsp;</a>
			<a class="previousPage" href="${pageContext.request.contextPath }/product_findByCidWithPage?cid=<s:property value="cid"/>&page=<s:property value="pageBean.page-1"/>">&nbsp;</a>
			</s:if>
				<s:iterator var="i" begin="1" end="pageBean.totalPage">
					<s:if test="pageBean.page != #i">
						<a href="${pageContext.request.contextPath }/product_findByCidWithPage?cid=<s:property value="cid"/>&page=<s:property value="#i"/>"><s:property value="#i"/></a>
					</s:if>
					<s:else>
						<span class="currentPage"><s:property value="#i"/></span>
					</s:else>
				</s:iterator>
			<s:if test="pageBean.page != pageBean.totalPage">
			<a class="nextPage" href="${pageContext.request.contextPath }/product_findByCidWithPage?cid=<s:property value="cid"/>&page=<s:property value="pageBean.page+1"/>">&nbsp;</a>
			<a class="lastPage" href="${pageContext.request.contextPath }/product_findByCidWithPage?cid=<s:property value="cid"/>&page=<s:property value="pageBean.totalPage"/>">&nbsp;</a>
			</s:if>
	</div>
			</form>
		</div>
	</div>
<%@ include file="footer.jsp" %>
</body></html>
